import { ValueArrayData } from '../base-data';

/**
 * 数值集合类型数据
 */
class NumberArrayData extends ValueArrayData<number>{

    protected generate(from: number[]): number[] {
        return [...from];
    }

    protected copy(targetContainer: Array<number[]>, source: number[]): void {
        targetContainer[0].length = 0;
        targetContainer[0].push(...source);
    }

    protected itemEqual(a: number, b: number): boolean {
        return a === b;
    }
}


export { NumberArrayData };